﻿#include "TurnTableDecode_TurnTable_Error.h"

#include "TurnTableCodec.h"
#include "TcpCodec.h"

TurnTableDecode_TurnTable_Error::TurnTableDecode_TurnTable_Error(TurnTableCodec *turnTableCodec)
{
  this->turnTableCodec=turnTableCodec;
}

TurnTableDecode_TurnTable_Error::~TurnTableDecode_TurnTable_Error()
{

}

void TurnTableDecode_TurnTable_Error::decode(char* const data)
{
  uchar errorType=*data;
  emit turnTableCodec->signal_turnTableError((TurnTableCodec::ErrorFlag)errorType);
}
